<ion-view title="我的信息">
    <ion-content class="writeback">
        <div class="info">
            <div class="list card">
                <div class="memberinfo">
                    <label class="item item-input">
                        <span class="input-label">会员ID</span>
                        <input type="text" readonly="true" ng-model="member.memberid">
                    </label>
                    <label class="item item-input">
                        <span class="input-label">手机号</span>
                        <input type="text" readonly="true" ng-model="member.tel">
                    </label>
                    <label class="item item-input">
                        <span class="input-label">昵称</span>
                        <input type="text" ng-value="member.membername" readonly="readonly">
                    </label>
                    <label class="item item-input">
                        <span class="input-label">真实姓名</span>
                        <input type="text" ng-model="member.name" ng-if="member.verifystatus != '01'">
                        <input type="text" ng-model="member.name" readonly="readonly" 
                        		ng-if="member.verifystatus == '01' && (undefined != member.name || '' == member.name)">
                    </label>
                    <label class="item item-input">
                        <span class="input-label">身份证号</span>
                        <input type="text" ng-value="member.idcard" ng-if="member.verifystatus != '01'">
                        <input type="text" ng-model="member.idcard" readonly="readonly" 
                        		ng-if="member.verifystatus == '01' && (undefined != member.idcard || '' == member.idcard)">
                    </label>
                    <!--<a class="item" ng-click="toupload()" ng-if="'2' != member.isidcardcheck">
          				<span class="input-label">上传身份证照片</span>
          				<input type="button" ng-if="undefined == member.isidcardcheck || member.isidcardcheck == '0' || member.isidcardcheck == ''"
          					style="margin-top: -45px; margin-right: 20px; float:right;"
    	 						class="button button-clear" value=">" >
          				<input type="button" ng-if="member.isidcardcheck == '3'"
          					style="margin-top: -45px; margin-right: 20px; float:right; color: red;"
    	 						class="button button-clear" value="身份证照片不合格 >" >
        				</a>-->
                    <label class="item item-input">
                        <span class="input-label">邮箱</span>
                        <input type="text" ng-model="member.email" ng-if="member.verifystatus != '01'">
                        <input type="text" ng-model="member.email" readonly="readonly" 
                        		ng-if="member.verifystatus == '01' && (undefined != member.email || '' == member.email)">
                    </label>
                    <label class="item item-input">
                        <span class="input-label">云联惠账号</span>
                        <input type="text" ng-model="member.ylhaccount" ng-if="member.verifystatus != '01'">
                        <input type="text" ng-model="member.ylhaccount" readonly="readonly" 
                        		ng-if="member.verifystatus == '01' && (undefined != member.ylhaccount || '' == member.ylhaccount)">
                    </label>
                    <label class="item item-input">
                        <span class="input-label">云联惠手机</span>
                        <input type="text" ng-model="member.yhltel" ng-if="member.verifystatus != '01'">
                        <input type="text" ng-model="member.yhltel" readonly="readonly" ng-if="member.verifystatus == '01'">
                    </label>
                    <div class="" style="">
                        <a ng-if="savebtnshow" ng-click="savememberinfo()" class="button button-block button-energized next" 
                                style="width:80%; margin:0.4rem auto;   color: #fff !important;">保存</a>
                    </div>
                </div>
            </div>
        </div>
    </ion-content>
</ion-view>

<script id="uploadidcard.html" type="text/ng-template">
<ion-view title="上传身份证">
	
    <ion-header-bar align-title="left" class="bar-positive">
		<button ng-click="goback()" class="button back-button buttons button-clear header-item" style="">
			<i class="icon ion-ios-arrow-back"></i> 
			<span class="back-text" style="transform: translate3d(0px, 0px, 0px);">
				<span class="default-title hide">返回</span>
				<span class="previous-title">返回</span>
			</span>
		</button>
		<h1 class="title" style="left: 0; text-align: center;">上传身份证</h1>
	</ion-header-bar>
	<ion-content>
		<div style="background: #fff; padding: 10px; color: #666;">
		<div class="row">
			<div class="col">
				<p>身份证正面</p>
				<div class="div-upload" style="">
					<input type="file" class="file-hook" style="display: none" 
						onchange="angular.element(this).scope().previewimag(this)" />
					<!-- 图片容器 -->
					<div class="img-idcard-wrapper">
						<!-- 图片列表  -->
						<div class="img-list"></div>
						<!-- 上传按钮 -->
						<div class="upload-idcard-btn" ng-click="upload(this);">
							<button class="upload-hook"></button>
						</div>
					</div>
				</div>
			</div>
			<div class="col">
				<p>身份证背面</p>
				<div class="div-upload" style="">
					<input type="file" class="file-hook" style="display: none" 
						onchange="angular.element(this).scope().previewimag(this)" />
					<!-- 图片容器 -->
					<div class="img-idcard-wrapper">
						<!-- 图片列表  -->
						<div class="img-list"></div>
						<!-- 上传按钮 -->
						<div class="upload-idcard-btn" ng-click="upload(this);">
							<button class="upload-hook"></button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col">
				<p>本人手持身份证</p>
				<div class="div-upload" style="">
					<input type="file" class="file-hook" style="display: none"
						onchange="angular.element(this).scope().previewimag(this)" />
					<!-- 图片容器 -->
					<div class="img-idcard-wrapper">
						<!-- 图片列表  -->
						<div class="img-list"></div>
						<!-- 上传按钮 -->
						<div class="upload-idcard-btn" ng-click="upload(this);">
							<button class="upload-hook"></button>
						</div>
					</div>
				</div>
			</div>
			<div class="col"></div>
		</div>
		</div>
		<div class="col"  style="padding: 10px; color: #666;font-size: 0.12rem;">我们会严格保护您的身份信息, 不会泄露给任何个人以及机构.</div>
		
		<div class="" style="">
            <a ng-click="submitimg()" class="button button-block button-energized next" 
                style="width:80%; margin:0.4rem auto;color: #fff !important;">确定</a>
        </div>
	</ion-content>
</ion-view>
</script>
